package com.xyht.sca_s.student_manage_system.modules.examinePaymentInfrastructure.controller;


import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.common.desEncodeAndDecode.annotation.SecretBody;
import com.xyht.sca_s.student_manage_system.modules.examinePaymentInfrastructure.entity.req.SmsPaymentExamineInfrastructureProcessReq;
import com.xyht.sca_s.student_manage_system.modules.examinePaymentInfrastructure.service.SmsPaymentExamineInfrastructureProcessService;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 付款审批流程（基础建设）流程 前端控制器
 * </p>
 *
 * @author XYHT
 * @since 2023-07-16
 */
@RestController
@RequestMapping("/examinePaymentInfrastructure/process")
@SecretBody
public class SmsPaymentExamineInfrastructureProcessController {
    @Autowired
    private SmsPaymentExamineInfrastructureProcessService smsPaymentExamineInfrastructureProcessService;


    @ApiModelProperty(value = "流程修改")
    @PostMapping("/update")
    public ResponseResult updatePaymentExamineProcess(@RequestBody SmsPaymentExamineInfrastructureProcessReq processReq) {
        return smsPaymentExamineInfrastructureProcessService.updatePaymentExamineProcess(processReq);
    }

    @ApiModelProperty(value = "流程列表")
    @GetMapping("/list")
    public ResponseResult getPaymentExamineProcessList() {
        return smsPaymentExamineInfrastructureProcessService.getPaymentExamineProcessList();
    }
}

